const imports = require.context('./', true, /\.vue$/);
export default {
  install(app) {
    imports.keys().forEach(e => {
      const component = imports(e).default;
      const componentName = e.replace('./', '').replace('.vue', '');
      app.component(componentName, component);
    });
  },
};
